using System;
using System.Collections;
using System.Collections.Generic;

using MemberMgr.Data.Base;

namespace MemberMgr.Data.BusinessObjects
{
    public partial class tConsumptionDetail : BusinessBase<uint>
    {
        #region Declarations

		private decimal _price = default(Decimal);
		private decimal _count = default(Decimal);
		private string _productcut = String.Empty;
		
		private tConsumptionMaster _tConsumptionMaster = null;
		private tProduct _tProduct = null;
		
		
		#endregion

        #region Constructors

        public tConsumptionDetail() { }

        #endregion

        #region Methods

        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            
            sb.Append(this.GetType().FullName);
			sb.Append(_price);
			sb.Append(_count);
			sb.Append(_productcut);

            return sb.ToString().GetHashCode();
        }

        #endregion

        #region Properties

		public virtual decimal Price
        {
            get { return _price; }
			set
			{
				OnPriceChanging();
				_price = value;
				OnPriceChanged();
			}
        }
		partial void OnPriceChanging();
		partial void OnPriceChanged();
		
		public virtual decimal Count
        {
            get { return _count; }
			set
			{
				OnCountChanging();
				_count = value;
				OnCountChanged();
			}
        }
		partial void OnCountChanging();
		partial void OnCountChanged();
		
		public virtual string Productcut
        {
            get { return _productcut; }
			set
			{
				OnProductcutChanging();
				_productcut = value;
				OnProductcutChanged();
			}
        }
		partial void OnProductcutChanging();
		partial void OnProductcutChanged();
		
		public virtual tConsumptionMaster TConsumptionMaster
        {
            get { return _tConsumptionMaster; }
			set
			{
				OnTConsumptionMasterChanging();
				_tConsumptionMaster = value;
				OnTConsumptionMasterChanged();
			}
        }
		partial void OnTConsumptionMasterChanging();
		partial void OnTConsumptionMasterChanged();
		
		public virtual tProduct TProduct
        {
            get { return _tProduct; }
			set
			{
				OnTProductChanging();
				_tProduct = value;
				OnTProductChanged();
			}
        }
		partial void OnTProductChanging();
		partial void OnTProductChanged();
		
        #endregion
    }
}
